Can you have light on and off bleeding and still be pregnant?

For 2 days? Overall only like 4 hours of bleeding(not continuous) Could I still be pregnant? I also had random spotting and brown discharge