The engine and transmission are connected and work together to make sure your car is moving at the speed you need it to at any given time. So, if something is going on with your transmission, your engine will eventually be affected.
However, transmission issues will cause problems with acceleration before they hurt your engine. So, you are more likely to need immediate transmission repair before your engine gets damaged.