Technically, you don't need a good (melodious) sound for rapping. But a firm and confident voice will always help you to be better at rap. You don't need to develop a sweet and melodious sound like a singer to be a rapper.