You can have non-curseforge mods in a modpack as long as you give appropriate credit, and the mod's license allows it. For example, my modpack has Galacticraft, because I link to it on the mod page. However, I couldn't add OptiFine because of licensing issues. Hope this helps.
Also, this forum is pretty dead, you should ask in a discord server or something.