Mucus plug?

Today I’m 36 weeks and 2 days. Yesterday I had a doctors appointment and my doctor checked my cervix because I have been having on and off contractions. I was 2 cm dilated and this morning I wake up to this…

Is this my mucus plug? Or maybe it’s just from her checking my cervix? This is my second time giving birth and this never happened with my first..

My doctor told me if I go into labor to wait till I’m in active labor then go to labor and delivery even at 36 weeks.