I would not "recommend" or encourage it, but would point out the numerous pitfalls. Some folks are going to do it it regardless of what anyone says, so need to try t talk fence-sitters into the profession.
Military is 'whole different conversation though. A military guy might with luck be able to make a smooth transition to the majors after 10 or 20 (or even 30). years, but that's not the main factor to consider for active duty. If you want to do military-to-airlines, join the ANG.