Is it normal to hurt when you try to eat?

Is it normal to just hurt really bad when you try to eat . This started yesterday but now when I eat I have sharp pains in my upper abdomen . I am 27 weeks