No, it's more complicated than that. Permitted usage will depend on the specific licence under which the source code is provided.
Some licences agreements, such as GPL, require the user to make all of their derived works open source. Other agreements are more lenient, on the user that is...