I would like to ask if as a photographer it is allowed to take photos of actors or musicians for a job

If it to promote acts of indecency and to promote and help them spread haram it’s not allowed