Yes, there is a time limit in each act of the game. If you run out of time, Sonic will lose a life. To keep track of the time, look at the top-right corner of the screen. You can collect time bonus items to extend the time limit.