Withdraw

Does withdrawing (pulling out) during sex really work and what is the proper method?