Yes, you do have to pay for Community College, but it typically will cost less than a 4-year college. In-state residents get the best tuition rates, so it would be beneficial to attend a community college near where you live to take advantage of the in-state discount.
According to educationdata.org, you can expect to pay on average $141 in-state and $339 out-of-state per credit hour at Community College. Credit hours at a public 4-year school are approximately $390 and $1,126 for in-state and out-of-state respectively. Regardless of residency status you can expect to pay on average $1,492 per credit hour at a private university.