Does a student have to go into the military after taking JROTC?

No, there is no service obligation for taking JROTC.