Is it allowed to put advertisement on a Software

As I pointed in title, I want to put some advertisements in my software to get advertisement fee and advice users to use these items (e.g. envato items) and I will have a chance to change the advertisements that is shown, but I wonder to know that is it allowed?
Thanks.