Does an earthworm have a stomach?

No. They have a gut.