Yes the backfire is concerning. I would proceed carefully! Worse case scenario could be a dropped or broken valve or a problem with camshaft timing, slipped gear etc. You may want to bar the engine over by hand, check valve lash at TDC, maybe check compression if you have a tester. Hopefully not that serious but just be careful.