Sex??????

Ok so I’m a virgin but one of my best friends which I’m really close with wants to do a “no title” thing because we’re both seniors and we don’t see a point on dating if we’re gonna leave in about 3 months. would it be bad if I lost my virginity to someone I’m not dating even if I trust him?