Yes, I've had this in my contract with every job I've had except my current one. My current place was set up by developers though and I think the contract reflects that. It actually specifically states that I can do stuff in my own time as long as it doesn't affect my normal work.