TMI brown discharge third trimester

I’m 37 weeks pregnant and had my cervix checked yesterday. I wasn’t dilated but outside of cervix is starting to soften. My OBGYN said there might be some spotting following the exam and I noticed this after going to the bathroom this morning.

Is this because of the exam or could it be part of the mucus plug coming out?