For publishing in a commercial sense, absolutely.
For a fan sharing their homebrew freely with the internet, maybe not. There's nothing in the core books about the SRD and OGL. Or even about the DMsGuild. (And the whole point of the DMsGuild is that you don't need to worry about the OGL or...