Is Vagrant an operating system by itself?
No, Vagrant is a tool for creating virtual environments, which it then can run inside a virtual machine (originally only using Virtualbox, but nowadays also KVM and VMware among others).

The environment created by Vagrant is, however, a fully virtualized OS (e.g. Ubuntu).