My engine started shaking about a week ago. I wanna know do I need a new engine? on 2006 Buick Lucerne

I Start it Up and it starts to shake an my check engine light starts to blink I have had the car for 6 months and never had a problem other then the battery and power steering

Asked by for the 2006 Buick Lucerne
scan test for codes and go from there