Yes, Afroman's 2001 track "Colt 45" is an overt parody of the Sugarhill Gang's 1979 landmark "Rapper's Delight"—and that's exactly the point.
Parody is a recognized, protected tradition in hip-hop (and music broadly). "Colt 45" is widely understood as a humorous homage—a stoner-party reimagining of hip-hop's first mainstream hit. It doesn't claim originality; it winks at the listener who knows the source. The Sugarhill Gang's legacy is honored, not stolen, by the very fact that their structure is the template for the joke.
Afroman built a career on comedic, substance-fueled storytelling ("Because I Got High"). "Colt 45" fits squarely in that persona. It's not plagiarism—it's intertextual comedy.