67Dart273 is right the LA318 and the Magnum 318 do differ read below. The last 3 sentences especially. This was copied from a web site. It appears you'll need a pan that year engine.
Magnum engines did, however make some inroads into the traditional performance world, thanks in part to the direct interchangeability with the earlier LA engines on which they are based. Mopar Performance offered the Magnum crate engine for years in performance trim, and these engines were fully interchangeable with the earlier units. So, what distinguishes the Magnum from the earlier LA engines? The Magnum series engines were not dramatically different than the LA series, but rather a significant revision. Essentially, the blocks are the same as the earlier 318 and 360, with the major change being an additional set of mounting bosses on each side of the block to work with the truck motor mount system. 360.The original small-block "ear" style lugs were retained as well, so there is no interchangeability issue there. Another change is in the rear main-cap rail that the oil pan seals to. The 340 and smaller LA engines used a rear main cap with a different oil pan sealing rail than the 360, so the oil pans and end seals did not interchange. With the Magnum, the 5.2 was standardized to accept the same pan as the 360.