The short answer: No.
The long answer. Ubuntu (server or desktop edition) itself can be downloaded for free (without costs) and you can use (and modify) it for free (without costs and freedom of speech). Theoretically speaking it could be possible that Ubuntu is going to ask money for Ubuntu, but that is highly unlikely, because I would host the source code in that case and you would be able to download the Ubuntu legally for free (without costs) from my website. This which I From the about page of Ubuntu:
Ubuntu 'main' component licence policy
All application software included in the Ubuntu main component:
Must include source code. The main component has a strict and
non-negotiable requirement that application software included in it
must come with full source code. Must allow modification and
distribution of modified copies under the same licence. Just having
the source code does not convey the same freedom as having the right
to change it. Without the ability to modify software, the Ubuntu
community cannot support software, fix bugs, translate it, or improve
it.
Git is licenced under LGPL2 which contains this section:
Our General Public Licenses are designed to make sure that you have
the freedom to distribute copies of free software (and charge for this
service if you wish); that you receive source code or can get it if
you want it; that you can change the software and use pieces of it in
new free programs; and that you are informed that you can do these
things.
But you can pay for support if you want.