Yes @Umang, Ansible Vault is used to encrypt variable files. It can encrypt any sort of yaml file. Most commonly encrypted files are:
- Files within the group_vars directory
- A role's defaults/main.yml file
- A role's vars/main.yml file
- Any other file used to store variables.