car wont go pass 40mph then shut down & wont start & started smoking on 1999 Nissan Altima

While driving on freeway it wouldn't go pass 40mph then it went to 20mph & just shut completely off & now it will not start & it started smoking

Asked by for the 1999 Nissan Altima
did it overheat??