People allergic to cats may or may not be allergic to guinea pigs. Because they belong to different biological families, they produce different allergens.
Allergy testing can identify specific triggers. If you have a cat allergy, it is wise to spend time with a guinea pig in a controlled setting before bringing one home to ensure you do not react.