I am using in my WordPress website Google analytics can i use Matomo in my website?

Can i use Matomo anlytics for my website Govt jobs info Right now i am using Google analytics. Suggest me How i can use it?

insert the Matomo code on the theme editor head file.