Is it okay to have sex while spotting??

Rpolite
Also period suppose to start today but spotted for the pass 8 days