I agree with this statement, but only to a certain extent.
It is certainly true that a person's work habits can be strongly affected by the environment in which they work. An organization that provides a highly structured work environment in which every worker knows what is expected of them will be likely to see good work habits in the majority of its workers. The same will be true of an organization that empowers its employees.
On the other hand, however, a certain amount of a person's work habits must surely be determined by their personality. Some people are simply more dedicated than others and more likely to work hard under any circumstances.
At the end of the day, it is likely that both work environment and personality contribute to a person's work habits.