No this is not ulcer. It is related to stress. When your body is stressed, it can react that way. Some people have stomach pain, others headaches, shoulder pain, neck pain, etc.
I recommend you start exercising regularly. If that doesn't help, then you need to consult someone. Good luck!