Petting your cat is generally safe, as toxoplasmosis is spread through contact with contaminated feces. However, washing your hands thoroughly after handling your cat is essential, as they may have come into contact with contaminated surfaces.