"New" Infiniti issues?

So I just recently purchased a 2006 infiniti g35 maybe about like 3 weeks ago I was driving home and suddenly my checking engine light started flashing. Got home and drove it home like the dumbass I am, Got an engine code P0603 and cylinder 5 is now miss firing. Is the car still safe to drive? Does anyone know what I gotta do to fix it?