Rare earth magnets?

I read some post where it was suggested that you should carve out a recess to set the magnet in.

You are suggesting just epoxy a steel plate on the pin and use the magnet on the reverse side?