Yes, that is correct, clean installing Windows using a bootable USB and deleting all partitions on the drive will remove a RAT.
If you have a secondary drive, if that contains executable files like installers for apps or games, you should delete the executable files, then perform a full scan of that drive with Defender or your preferred anti-virus.