So long as you don't do it often, you should be ok.
Just DON'T check luggage, or it will go on without you. And do your fellow pax a favor and call the airline to tell them you are sick and have to miss the second segment..AFTER you deplane of course!