Mucus plug?? Please help

Mucus plug?? Im 21 week pregnant. Did sex at night and today afternoon this came out. Please help what could be this? Is this normal or should i call my doctor? Is it mucus plug? I had anatomy scan yesterday and everything was fine.