Yes, YouTube doesn't charge you to upload a video.
> All of the ad revenue is theirs, as they have the direct relationships with the advertisers.
All of the money goes _through_ YouTube but it doesn't belong to YouTube. There's a (formal, legal) agreement between YouTube and creators that predetermines how much of that revenue belongs to YouTube and how much belongs to the creator.