Nope,
public repos have license, often open source licenses that state that you can freely use the code, or change it , but only if the resulting product will also be opensource.
Other licenses such as the MIT license require that you name the original creator.
Other licenses such as the MIT license require that you name the original creator.