Dahlias

Can i plant in soil where rosemary bushes grew?…