Oil pan confirmation

Just wanted to make sure, a 318 oil pan will work on a 340 correct?