Yes it can work! I’m currently in one, and have been for 1.5 years. He lives in Scotland and I live in England. You just have to make sure you communicate often and reassure each other that you are happy to be in that relationship. I can’t deny that it’s difficult, and it’ll only get more difficult from here (he’s starting work full time and I’m going to university) but I wouldn’t change it for the world. It makes you cherish the time you spend together, and appreciate each other more. Plus, we don’t have doubts about how the other person is feeling because we are both willing to pay travel expenses to see eachother (and believe me, it’s expensive!).
Just plan in advance when you would like to see each other. We can only manage 3/4 days every couple of months, but it gives you something to look forward to.