Nikon, unlike Canon, did not change the physical properties of the lens mount when auto-focus was introduced. For that reason, modern cameras can still mount most legacy Nikon lenses. With the exception of the G lenses, current lenses can mount and work on ancient bodies, as well.
Basic Nikon compatibility notes: (For reference, the D40 and D60 fall into the same category as D3x00 and D5x00 for lens compatibility.)
Original F-mount, made before 1977 and not converted to AI (post-1977) will mount to D3x00 and D5x00, but nothing automatic works; no metering, no auto-exposure, manual settings only. Do not attempt to mount them to any other digital SLR, as part of the aperture ring needs to overlap part of the camera, which is hard to do with steel.
AI (introduced in 1977,) or AI-converted (a pre-AI lens that's been modified to behave as AI) will mount on current cameras. On the D3x00 and D5x00 (and any D-2-digits) it's manual all the way, with no metering. On higher cameras it will meter, and you can use aperture-priority as well as manual exposure.
Any original AF or AF-D lens will mount to all Nikon dSLRs, but will not auto-focus on D3x00 and D5x00, as those cameras don't have the focus motor in the body that all of Nikon's early AF cameras had. They will meter, but AF (no '-D') will not use the meter's 3D features, as they don't send distance information to the camera.
Anything that's AF-S is 100% on all dSLRs and most film cameras. No AF, of course, on non-AF bodies, but the lens will mount and use any of the camera's functions, except for G lenses on bodies which require an aperture ring on the lens (which is very old film bodies - all the digital bodies use G lenses OK.)
As to the OP's actual question, using Nikon lenses on Canon cameras, there are adapters to do that, but no automatic functions pass through those adapters, making it something you really really want to do if you're going to do it.
Putting Canon lenses on Nikon cameras doesn't work, even with adapters, unless the adapter has a corrective lens, which will ALWAY degrade the lens's usability. The reason is that the distance from the sensor surface to the lens mount surface is larger on Nikon than it is on Canon. That difference means the thickness of an adapter can be used to put a Nikon lens at the right distance from the Canon sensor to focus correctly. A Canon lens on a Nikon camera is too far from the sensor even without the thickness of any adapter ring, so it won't focus to infinity. That's where corrective optics are necessary, making the adapter more expensive and more compromising.