Can a grad student take undergrad classes?
Depends on institution policies, but usually yes.
That said, the grade you get usually won't matter, and besides you might already know some of the things in the course. You might be better off just focusing on the interesting part then, by self-educating.