Hard starting unless warmed up and intermittant check engine light. on 1997 Ford Ranger

Rookie cbe0621eac06868b3efe0d8d1d3611e23c60d3114864ea2ec19a68cfbd3eebab
Very hard to start and keep running until warmed up. Then bucks and dies under load until driven a mile or so then check engine light comes on under load and goes off under low or no load condition.
(1) Answer
Definitely get the Check Light Code. There is something wrong and that light will help.