Yes, work is done as long as there is a displacement and a force applied in the direction of that displacement.