I don't know the costs of using ansys as a single user, but I can tell you that my institution spends a very significant portion of our budget on the licences involved.
Obviously I am biased, but I think that there is a very real value in learning OpenFOAM, as you have a guarantee that it will remain open and free, whereas you have no idea when a company might change their pricing or updating policy, locking you out of a very specialised program.
Regarding the programming, when I started I had a grand total of 0 hours of programming experience in c++, I only wrote mediocre unoptimized python programs, but it was more than enough. You'll very quickly learn the basics of how to read the various case files.
I agree with Yann that OpenFOAM has a higher learning curve, meaning that you will very often stare at the documentation wondering where you went wrong, but with time you'll get better at troubleshooting. There are also tons of people on various forums which likely encountered similar issues.
I would recommend watching some tutorials on Youtube, I can personally vouch for the tutorial series by Cyprien Rusu, but absolutely any will more than likely be perfectly fine.