should I accept a friend request from a friend of a friend of a friend of a friend that's a friend of one of my friends and we are in the same class together?

It depends on your comfort level. If you feel comfortable with the person and would like to get to know them better, then it may be a good idea to accept the friend request. However, if you don't feel comfortable with the person or don't know them well, then it may be best to decline the request.