Stack Exchange network consists of 177 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Recently, I've got a question with a score of -4, so I have deleted it and I got my reputation back. Is this act considered to be ok?
As long as there are no answers on it (i.e. you can self delete), yes.
There's even a badge for it so it's encouraged.