Worried please help

If I’m pregnant by an 18 ur old an under age of consent but he lives in another country and no one knew but my family can he go to jail if I pu his name on the birth certificate?

Update***

I went to visit him and got pregnant now am back in my country