You can block all pre-defined titles with proper allow blocks, but any custom titles created e.g. from the CM custom kingdom/empire decisions or nomadic settling cannot be blocked this way. I don't believe vassals can create any of these from scratch, but if someone has created such a title and it no longer has a holder vassals could recreate them unless their government type blocks creation of that tier, so if you want to be 100 % certain that vassals cannot create titles you'll either have to get rid of all ways to create such titles (simply disabling custom titles is insufficient, since other things can create them) or add a vassal-specific government type that blocks kingdom creation (there's no government setting for blocking duchy creation (but also nothing that creates custom duchies that can be recreated in vanilla), so that still needs to be blocked in the allow block).