2002 honda accord

Can I swap my 4 cylinder engine from a manual transmission into a car that has automatic transmission 4 cylinder.
2002 Honda Accord