No it would not, need to check fuel pressure with a gauge first Then I would clean the throttle plate real good with cleaner and tooth brush or rag. This is where the duct work comes from the air filter to the engine, take it loose and you will see the throttle plate.
a blocked fuel filter causes spluttering and stalling although it could be a gypsy curse
Replace the Idle Air Control Valve only about $50. This would cause funny idling and stalling out.
The fuel filter probably needs to be replaced. It could be stalling because of a major vacuum leak. Check the PCV valve and all the hoses.
The cabin air filter can not cause a rough idle. It only filters the air for the ac/heater.
could be a vacuum leak
One possibility is a defective lock-up torque converter solenoid. If it runs and idles fine in then this would be what I would check first. Disconnect it and if it then stops stalling in drive, you have found the culprit.
Need to know year and type of car including what motor please.
Manual or automatic transmission?
This condition can be caused by a few things. As in clogged fuel injectors or the PCM has failed and is in a limp mode
It could be a dirty air filter or a dirty throttle body.
Check fuel pressure when the car idles.
Your fuel pump may not be able to keep the pressue up, because of either a worn pump or clogged fuel filter, or clogged tank filter.