Is it ok If I buy 2 different types of Vega 56?

I have a question what If i buy 1 vega 64 of Sapphire and the other one of XFX?
Will it work for mining?

Yes it will. You might need separate settings for overclocking (if you want to OC) but out of the box they should work just fine.