Is making money with help of a open source gpl software legal?

Basically i have a website with lots of gpl'ed code for displaying banners (paid) within domain and serving almost every thing on my website which is also related to advertising.

i want to know it its legal to have profits of code written by the community?
2 respuestas 2