That is a great question. It is wonderful that you are thinking about graduate school. Cost may be a factor to consider when looking at schools, but you may also want to look into scholarships and other financial aid opportunities that are available to you. Some universities may even have graduate assistantships or offer other ways to work on campus, which could potentially help with the cost of tuition.
I hope this helps! Have a great day!