Sex before std test

I’m 34 weeks pregnant, and I was wondering if I can have sex the day before my gbs and std test? Or will that throw things off?