Not always. What you refer to is the GPL and some forms of Creative Commons (CC) license, amonst other less common types. The BSD, MIT and the like all simply release the code to the public, prevent you from suing the author, disclaim all warranty, adn sometimes require you to attribute the code. Then there are various shades in between.
The Open Source Definition, as set out by Bruce Perens for the Open Source Initiative[0] specify that open source means:
- the software may be redistributed gratis to anyone
- the source code must be availible, and must be - modifiable by anyone, who must be able to distribute the modified code under the same terms. - not modifiable, but patches may be provided to add changes at build time.
- anyone may use the software, for any purpose
- anyone who recieves the program has does so under the same licence as the person they recieved it from.
[0] Based on the Debian Free Software Guidelines, also by Bruce Perens.