When open sourcing your code project you should always pick an appropriate license for it.
There are a lot of open source licenses available that fit a lot of use cases.