It is difficult to remain friends with someone you like. But  if you want the friendship to continue with the same person, then avoid getting into situations that may cause romance. So, it's possible, but you need to be genuinely disciplined