People often misquote the scripture - it isn't that "Money is the root of all evil." It's "The love of money is the root of all evil." (https://www.biblegateway.com/passage/?search=1%20Timothy%206%3A10&version=KJV)
Pursuing money in service of the freedom and options it provides you is a reasonable thing to do in a capitalistic society such as ours. It's when you forsake your other priorities such as family, friends, wellness, hobbies, etc. in service of maximizing your net worth that you run into trouble.