Is WordPress opensource?

Yes, WordPress is opensource and you can do customization as per your requirement. WordPress is built in PHP/MySql/javascript/jQuery which is also an opensource.