Yes, Remove the two 10mm hex head fasteners on the headlamp. Use gentle force to bring the whole headlamp assembly straight ahead forward in order to disengage the ball stud from the socket. This will give clear access to relamp.
It maybe a bit tough pulling the headlight assembly forward the ball stud gets a bit dry. Put a dab of petroleum jelly on it before putting it back in to help with the next time.
What brand of light are you installing?