There's more nuance here than reducing consumption of beef and dairy. Moving over to regenerative farming practices instead of factory farming will also improve the situation.
Yes and doing regenerative practices all the way to the end would naturally force this reduction in consumption. It would be really good, because the land used to grow feed could be redirected to other more efficient uses.
There is quite a bit in between too. Grass vs grain fed cattle, for example.