Yeast infection

Can it burn if you had a yeast infection (not knowing ) and your man cum inside you? It’s never burned before so I’m thinking it could’ve been an infection but my cm has been creamy then had like a slight cottage look but it’s more creamy then anything. Could it be a slight infection?