Can getting fired be the best thing for you?

No sign for career improvement
There are a lot of factors that will determine your career development at your workplace. Career improvement always depend on what you are learning new at your job. But if your efforts are not recognized by your manager or if you are not finding anything interesting , then it's of no use to continue your job.
So don't be disheartened if you are fired. It will teach you how to deal with any setbacks. Instead of getting way too upset, you should analyze the positive sides and finally you can look out for different avenues.