Hyundai tucson 2008 2L FWD p0304 missfirr

Another thought is if my engine cold starts at 1200 with some vibrations could that trigger and make that knocking sensor give faulty information to the computer loose timing and missfire but when the engine gets warmed up and no vibrations or less fixes the issue but the CEL stays on because of the cold starts every morning.Am I in the right path?