If you have a substantial risk of acquiring an allergy, it would be a smart idea to not get a pet cat as a way to prevent producing a cat allergy. However, if you don't have a higher threat, then there is not any cause not to have a pet. https://www.directivepublications.org/allergy-and-clinical-immunology/