Do you have to get your masters before you get your doctorate?

No. When completed with your undergrad you can take Masters courses which can take typically 2 years, or Doctorate classes which take on average 4 to 6 years.