Could masturbation habits affect your sexual stamina?

Yes. One common situation is a teen who has not had privacy and has had to learn over the years to ejaculate as quickly as possible. This is a common situation in which premature ejaculation develops, and it will take some practice with the partner (read about the squeeze technique) to adjust. Male or female, vary your technique to adapt to a wide variety of different possible partners. You'll be fine.