Uber says it might get into the cannabis delivery business once federal regulation allows it to do so, chief executive officer Dara Khosrowshahi said, according to The Independent Tuesday.

Despite the legalization of marijuana in several states, it still remains illegal at the federal level but some legislators have expressed a willingness to change policy. Around three dozen U.S. states have decriminalized the drug, either for recreational or medical purposes.

"When the road is clear for cannabis, when federal laws come into play, we are absolutely going to take a look at it," CNBC quoted Khosrowshahi as saying in a TechCheck interview.

Uber bought Drizly, a Boston-based alcohol delivery service, for around $1.1 billion in February.

For now, Uber said it would focus its efforts on the company's current delivery options in its key categories like food and alcohol. Khosrowshahi said it was going to "focus on the opportunity at hand."

New York became the latest state to legalize the sale of cannabis March 31 when Gov. Andrew Cuomo signed a bill into law. Cannabis delivery services are legal in Oregon, Nevada and California for anyone over the age of 21.

Uber stock climbed more than 2% Monday, after the company reported record gross bookings for March, suggesting a pickup in demand for Uber's ride-hailing business.