Yes, according to the Amazon fitting information, this lens will fit the Nikon D60.
https://www.amazon.com/Nikon-AF-S-Micro-NIKKOR-40mm-2-8G/dp/B005C50H2Y/ref=sr_1_1?dchild=1&keywords=Nikon+-+AF-S+DX+Micro-NIKKOR+40mm+f%2F2.8G+Macro+Lens+-+Black&qid=1601213657&sr=8-1