Can we implement hreflang on root domain for one country and on sub-folder for another country?


Is it possible for 2 countries, we can implement hreflang tags on root domain and a sub-folder, for example for US hreflang on www.example.com and for Italy www.example.com/IT can we do it like this?

I have added both urls in Google search console & submitted separate sitemaps, but Google is counting all pages (including sub-folders) for the main domain, so I am thinking that Google is considering main domain (root domain) as a whole website not a country specific as per hreflang.

If you know about this or have similar experience, then Appreciate your help! Thanks, Adil