preganancy test

can you take a pregancy test if you're spotting?