yellow discharge ?

Okay so I'm pregnant and yesterday I had sex with my boyfriend but it was hurting so we stopped and it was swollen and when I woke up today I had yellow dishcharge .. we've only been together so I know it's not an STD but idk what it is ...