Custom objects with scripts already attached

Is there a way to create custom objects with scripts and other components already attached to it?

I am creating a game with NPCs and wanted to see if there was any way to create a new object called “NPC” that already comes with a collider and the NPC script.

Is there a way?

Please have a look at Unity - Manual: Prefabs