How similar are they?

Since I masturbate will that make my first time easier? Like will it still be painful or are the real thing and masturbating the same?