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?