Yes, evoking patriotic sentiments among its people by bashing other countries, inorder to hide the governments own shortcomings is a very popular stunt in many countries.
Until 1992, when Indian economy was really bad and almost on par with Pakistan, just bashing Pakistan and beating them in cricket was sufficient. But after India's economy took off, bashing pakistan wasn't enough anymore, they had to then take up fights with more developed countries

, like in 2008/09 they were bashing Australia and even issued a travel advisory regarding crime against Indians in Australia.