Depends on the drug. I think patents on drugs generally have to expire before generics are available, unless the company sells manufacturing rights for the chemical for some reason (very unlikely) or a generic drug company somehow invents something that allows them to manufacture a version of that drug on their own (also unlikely - generic drug companies don't tend to do research, especially on new compounds).