360 heads on a 318. will it work?

ive been doing some reading and seems if i have the 360 heads shaved .040 off they should do ok with the 340 cam and i will add a performer intake and carb. im also ok getting the stock heads checked out and run them if the 360 heads will totally kill it.