Is it ok to assume that all code on these forums in free distributable.

Say someone posts some code that I like, and I put in a program and sell it for big bucks.

Do I need to ask the poster before putting the code in a commercial product??