He can only go to jail if he has had a sexual relationship with you. This would include any sort of sexual act. If you have not done anything like this, you two should be fine.
if it nonsexual it's fine or you may want to look at this site, note read all of it, in one place the law may say one thing, in another something differant.
were are you from, in the uk the legal age for sex is 16, what is it where you live?
if it is 18 and you both have already had sex yes he could go to jail for that if someone found out... if you are just in a relationship and not having sex then you are both fine as neither of you are doing anything wrong