Can you be around hamsters or cats when preggers?

Amiee

Hi I’ve ready that you can’t be around hamsters or cats when pregant but I have to either have my cat or a hamster in my room what if I don’t go no wher near the hamster would that be fine in my room?