"Compressor shut" is a bit vague - what exactly did he say was wrong with it? These units usually use scroll compressors these days that are impossible to open for repair in the field but they could be repaired in a well stocked, specialized shop. If by "repair" you mean "replacement with same or OEM replacement compressor" then yes, it can be done by a qualified technician.
Replacing a compressor is a very large undertaking and I would first find out more about what exactly was found wrong with it. If it does not even come on, then it's often the external electrical parts that fail (relays, capacitors) and those can be relatively easily replaced, although you still need a qualified tech or a DIYer very confident with high voltage electrics to do it