Did I test too early?

I am 6 days away from my period. I took a test today. It was negative. Could of I tested too early?