My company will pay bonuses at the end of May. If I resign before that, are there any chances of still receiving it?
Check your contract - there's no real way for us to know.
Typically, humans are notorious for not wanting to part with money they don't have to, so I'd imagine the likely answer is "no, you probably won't get the bonus".
If you know any employees at your company who you trust to be discreet, you could ask them if there have been similar situations in the past, and find out how they were handled.