Hi,
No there is no such connection. Instead foreplay plays an important role for you to get proper hardness and Erection.
The issue as described by you above is termed as premature ejaculation.
I understand how this problem might have become the biggest problem of your life recently. Premature ejaculation is a common problem among men. About 30% to 40% of men have this problem at some time in their lives.
I believe in your case your penis might have become hyper sensitive. Does it happen sometime you get erection you feel you should go in and the moment you try to enter it goes down and you ejaculate?
Let me explain you about your issue in brief - The problem of premature ejaculation have become very common in recent days. Premature ejaculation (PE) is when ejaculation happens sooner than a man or his partner would like during sex. Occasional PE is also known as rapid ejaculation, premature climax or early ejaculation. PE might not be a cause for worry, but it can be frustrating if it makes sex less enjoyable and impacts relationships. If it happens often and causes problems. The problem is often thought to be psychological, but biology may also play a role.
However this issue is not a major cause to worry as there are medications and treatment available for the same. Rest assured your problem can be resolved.
Next Steps
If you genuinely interested in getting your issue resolved then you can contact me either online or in person. Would be happy to help you.