Only if you use a relay server. Direct connections in a local network are not encrypted, and RuskDesk doesn't plan on implementing it [1].
[1] https://github.com/rustdesk/rustdesk/issues/3714#issuecommen...