Yes, you can give gifts to the people in the office you are leaving soon. The staff might give you a farewell party. But it would help if you first gave a gift to your boss and small presents to your coworkers too.