Yes, they are cheap, here’s an example though this may not be exactly right because you didn’t tell us the year.
Dromedary Mass Air Flow Sensor For Ford Lincoln Madza & Mercury MAF 3L3Z12B579BA https://www.amazon.com/dp/B0749MCK78/ref=cm_sw_r_cp_api_PZF0AbQS2B1NY
While it could be something else, and I’d like you to scan and tells us the codes, I answered your direct question even though that may not be your problem.
Sometimes disconnecting the negative battery cable for an hour will force the car into relearning mode and may help, temporarily. Tell us what codes you have.