I did pretty much the same and was even older than you. However, I was completely financial independent after a rather successful careers before I enrolled to an undergrad program and then PhD.
IMO, it would be a very bad idea if you had not attained financial security. First, you need to spend...