If it’s worth it to both of you, you can make it work. It’s not easy, but communicate as much as possible (chat, phone, skype, write sweet long love letters in longhand) and save up for visits as often as possible. It helps to know if there’s an end to the separation in sight.