Yes, Tor Browser relies on network nodes that are encrypted. If there is a MITM attack, it's impossible to crack it because the connection is over HTTPS and the nodes use an encrypted communication channel that's practically impossible to decypher. You are safe on Tor Browser. Besides anonymity, Tor will also enable you to access websites that have been blocked in your country as well.