Gave the nicest boy ever back to adoption people...

I got a new cat on Jan 1. Not realizing the responsibilities and how alone I'll be. I was okay to spend as much as I can on him. But i couldn't play with him, he'd cry sometimes. Meow at night I'd feel horrible on top of that I was feeling suicidal and depression lately it further increased it. I felt he deserved better parents and texted adoption lady how I feel , she took him back immediately ... I did the right thing ?