Just to add, providing you do not use third party libraries.
if you do , you have to honour their licensing arrangements.
In most cases, it's better to tell the user where to obtain a copy of a library, than include it in your program installation. That way you avoid the need to include the library sources etc, in your application install.