It’s done around here all the time. By both farmers and licensed electricians. As long as the runs follow the boards and are secured properly, it makes for a neat installation.
Whether it’s code-compliant or not may depend on the use of the building.