Which state is he in? I am also in a relationship with someone in prison - and we do share sexy stories and talk dirty on the phone. Yes people can hear them and read them but oh well. Worth it.
It's been 4.5 years since he was incarcerated and almost 5 years since we were long distance - we are on two sides of the world, he in America, me in Australia - but our love has stayed strong and actually built over time.
It helps we were friends and in love for years before his crime (which was the result of drug-induced psychosis due to a mushroom trip interacting with his existing mental illness).
But absolutely you can get through anything! Just make time to either write to each other every day, or talk every day. Consistency and effort is key. He needs to stay an important part of your every day for the duration. Also don't put your life on hold. Enjoy life on the outside. Don't make everything be about him. That's important for mental health and prevents codependency.