I know I need a dentist, but I have pain near under my tooth at the gumline when brushing my teeth, can this be more serious than a cavity?

Yes. the sooner you seek professional evaluation the better. You dont want to make ur situation worse. Until then keep up with your hygiene. Good luck n be well.
Probably not. But then again, you do need a dentist. Please make a call for an appointment.