do military spouses get educational benefits?

Just out of curiosity, if you get married to someone who joins the marines, could the military pay for your college?