Lube??

For the people that had sex and dealt with pain . Did lube really help ? did it stop the pain ? Was it easier ?