While it is possible to temporarily seal a small oil pan crack with duct tape, it is not a safe or reliable solution. Duct tape is not designed to withstand the high temperatures and pressures of an engine, and it can easily become dislodged or fail. This can lead to further oil leakage, which can damage your engine or cause it to seize.
If you have a cracked oil pan, it is important to have it repaired as soon as possible. Driving with a cracked oil pan can cause serious damage to your engine and can even be dangerous.