You should continue serving your organisation for a while as some of them offer bonuses and other compensations to their employees only after they complete a certain period of service. You can confirm that duration from the human resource department of your firm and you should keep working there until you complete that time.
If you are thinking of leaving the job, you should tell your employer in advance and serve the notice period as agreed by you in the contract you signed in while taking the job. If you do not give them notice, they will not only block your salary but they will also put a stop to your bonus and other benefits.
Resigning from the company does not mean that you do not have to work anymore. This is a ridiculous thought, you should work as hard as you used to do before, so that your employers could be happier from you and treat you with the same while you leave the job.
You should remain in good terms with your colleagues and if on bad terms with anyone, do not forget to patch with him/her. If you are leaving the place, you should act carefully and have good terms with other employees.
Learn well about the rights of a former employee to claim in future, if the need arises.