Yes, the Diamond Casino Heist in GTA Online can be completed solo, it is just harder than doing it with a team. The heist is designed to be played with a crew of up to four players, and having additional players can make certain tasks and objectives easier to manage.