Macbooks are not good for doing real work.
Seriously, do you really think that using the machine like this could break it? That would be one heck of a crappy machine for Apple to sell if it couldn't handle being USED for extended periods of time. Some laptops/computers run stuff like this for days. Just make sure the laptop has good airflow around it and it will be fine.