Sure, just like it’s illegal to steal the formula of Coca Cola from their documents.
But you can do an analysis of a bottle of Coke to figure out exactly what’s in it.
You can even make your own and sell it, if you call it a different name.