You certainly can just use that code. It’s not “the standard” though. There is no standard. That’s one possible implementation of perlin noise of an essentially infinite number of possible implementations. If you’re not interested in writing your own, sure, just copy and paste. That is something pros do.