Physically, yes. But the entire electrical system in the PT Cruiser changed from 2005 to 2006. Digital communications between modules and with engine and transmission via CANBUS. It may be more trouble electrically than it's worth.
Welcome to Allpar. They went from SBEC to NGC engine management. The crankshafts are different.
Is what you have rebuildable? Do you need a long block or short block? EGR?
It is not a direct interchange.