Is it considered a pregnancy symptom?

When your stomach randomly hurts for about 3 minuets and you get this nauseous feeling and then it sort of fades away?