Yes, a bad spark plug can cause backfiring. It can lead to incomplete combustion, allowing unburnt fuel to enter the exhaust system where it ignites and causes a backfire.