Check your company policy. For most companies, the answer will be NO. Most likely, the policy says you have to be active employee when the bonus is given.