Spotting and period like cramping

Can getting your GBS swabs and a culture for yeast cause spotting? She did use speculum but was very gentle and didn't get anywhere near my cervix, @36w3d. Woke up many times in the night with terrible cramping and loose stools/ spotting this morning. (5th baby)