Stress has been proven to cause bedwetting in some cases, yes. Experiencing an event that is traumatic can cause incontinence years after it has happened. You can read more about stress and incontinence here.
I would definitely recommend going to a Doctor to ensure it isn’t another underlying health problem. Are you frequently constipated, or do you know whether one of your parents experienced a similar problem?
Yes to your question about stress. I`ve had stress wettings, off and on, my whole life, especially with illnesses of my partner to cope with and my own nightmares related to childhood issues. I`m usually wet after a nightmare as your subconscious is so affected. Many good products are available to help you manage these wettings but, as indicated, get medical help as a first step.