Cat peeing on bed

Clarissa • Mommy to the most beautiful baby boy 💙
So about a week ago our cat started peeing in our dogs bed and today she peed on ours. We really have no idea what to do. I can't have her peeing on the baby's stuff and obviously I can't have her peeing on my stuff. Especially while I'm pregnant. We're taking her to the vet tomorrow to check for a UTI but my husband has said that if it isn't a UTI that we have to give her up. Anyone have cats that have done this? How did you fix this problem?