I'm new to this type of thing, and I know that pre-made assets are allowed (so long as I own the rights to them), but does code fall under that?
You can use pre-made code. Most add-ons for unity and unreal use pre-made code.