Giving gifts to profs?

I wanna give a gift to one of my profs, I was wondering if they are allowed to accept gifts or not? I had a rough patch around the middle of this semester (missed a few important assessments for a number of classes) and he was the only prof that reached out to ask me if everything is ok. The others just gave me the zero and moved on which is completely understandable. I just found it really nice that he reached out personally to make sure I was ok.

I'm planning on giving the gift after I receive the final grade for the course so that he doesn't get the impression that I'm trying to bribe him or something. I won't be in Waterloo so planning on just sending him a prepaid gift card via email. Is this allowed? Will he accept it?