While the bans end in time for the pair to play the final two one-day internationals of the five-match series against Pakistan, neither was included in the squad as they are both recovering from recent elbow surgery.
"I think Smith and Warner will be accepted with open arms. They have done their time. They are not bad people, they just made a bad mistake," Warne, who claimed 708 wickets for Australia in 145 tests, told Sky Sports.
"When you have got that sort of class as a cricketer, they will go straight back into the World Cup squad."
World champions Australia picked up a 3-2 ODI series win in India, gathering momentum in time for the May 30-July 14 World Cup in England and Wales.
"The way Australia are playing at the moment, I wouldn't write them off and I think they can win the World Cup," Warne added.
"They just beat India in the T20 series and to chase 360 in India without Smith and Warner is an ominous sign for the rest of the World Cup competition."
(Reporting by Hardik Vyas in Bengaluru; editing by Sudipto Ganguly)