Are you graduating in June, July, August, or September? If so, you can continue to work as a student employee through September 30 of that same year.
Are you graduating in January or February? If so, you can no longer work as a student employee. As soon as you know you have passed, you are no longer considered a student. This also applies if you have not yet officially received your diploma.