It depends on where you live and weather or not your parents will want to press charges on him. IN my state GA if the girl is underthe age of consent (16) and the guy is over it then he can get in trouble , search online to be sure. But from what i think , if your parents dont press charges then he should be fine. but im not 100% sure.
And tell your parents soon , im not an expert on this becaue i didnt tell them either time i was pregant they found out before i got the chance ! First the doctor told them , then this time my step mom overheard me on the phone and my mom just asked me. Just be prepared that this will be a shock for them too and they might not be too suportive in the begining but hopefully they will come around. Good luck !!!