Forced? No.
Created a social blackmail situation? Yes.
It would feel very awkward to recieve a gift from someone and not give one to someone else. And our teacher just gave us random names, in a way. We wrote our names on paper than put them all in a hat that we all drew a name out of.