Yes, you can play as a Mind Flayer. But this is entirely based on stories and companions that you choose in early acts in the game. Mind Flayer is an evil monster in Baldur's Gate III. In the final act, you have to make some challenging decisions and kill emperors to possess the powers of a Mind Flayer.