Can you get a divorce if your spouse is incarcerated?

Yes, a person serving a sentence in a state or federal facility can have divorce petition (or other legal actions) served upon them, and has the legal right to respond through the prescribed facility regulations.