No, you don't need to replace both front and rear rotors at the same time. However, it's a good idea to inspect both sets of rotors when you're changing your brakes. If one set is significantly worn down, it's a good idea to replace both so that they wear evenly.