Yes this should be corrected and it would be good to have the wiring and all the circuit connections inspected as well.
Attic receptacle requirements.
Nec 2008 394 12 uses not permitted.
The receptacle shall be located on the same level and within 7 5 m 25 ft of the heating air conditioning and refrigeration equipment.
Concealed knob and tube wiring shall not be used in the following.
The receptacle outlet shall not be connected to the load side of the equipment disconnecting means.
The access opening should be located in a hallway or other readily accessible location and minimum 22 x 30.
5 hollow spaces of walls ceilings and attics where such spaces are insulated by loose rolled or foamed inplace insulating material that envelops the conductors.
The attic wiring should be protected and secured to ceiling joists or other wood structural supports.
210 70 c in other than dwelling units at least one one lighting outlet containing a switch or controlled by a wall switch shall be installed in attics or underfloor spaces containing equipment requiring servicing such as heating air conditioning and refrigeration equipment.
Receptacle outlets shall be installed as specified in sections 210 52 through 210 64.
Wall receptacles may be placed no farther than 12 feet apart on any wall surface.
This switch can control either a ceiling light a wall light or a receptacle for plugging in a lamp.
As noted in sec.
Monday june 18 2018 the nec national electrical code specifies at 210 70 a 3 that any attics underfloor spaces utility rooms and basements have at least one lighting outlet but only where these spaces are used for storage or contain equipment requiring servicing.
Where gfcis are required gfci protection is required for 125 volt to 250 volt receptacles supplied by single phase branch circuits rated 150 volts or less to the ground.
If the attic space is smaller than these specs then an access hatch is not required.
Minimum vertical height of 30 inches measured from the top of the ceiling framing members to the bottom of the roof framing members.
The ceiling fixture must be controlled by a wall switch rather than a pull chain.
Any wall section wider than 2 feet must have a receptacle.