this can happen in an indirect way. The goal of lifting weights is to get stronger through developing some muscles (don’t worry: the vast majority of women do not get bulky). While there is caloric expenditure during the strength workout, the true value of getting stronger lies in the fact that you have greater work capacity including a cardio workout.
For women, adding strength training has the additional benefit of challenging the skeletal system to maintain bone density.
Regardless of your workouts, the main impact on weight loss is by eating a very controlled diet.