Would a cat really help your issues?

I heard cats are good for anxiety and stuff like that. Would having a cat really help?