Your employer can't fire you BECAUSE you are properly using FMLA leave. But on the other hand, being out on medical leave doesn't prevent the employer from firing you for a legitimate reason, such as because you can't do the job. Situations involving reasonable accommodation of disabiity are very fact-specific. You need to consult an employment lawyer who can advise you.
Disclaimer: This site exists to provide information only. It is not legal advice. Answering your question does not create an attorney-client relationship. I am a Massachusetts lawyer. Any information provided on this site does not, except as explicitly stated, imply familiarity with laws or procedures peculiar to your state which may differ from those where I practice.