Yes this would be easy to do. If the latch is utilised on a door, it's probably most expedient to mount the permanent magnet on the door and the electromagnet in the frame to avoid running wires out to the door. The permanent magnet should obviously be oriented either North to North or South to...