If you pre-order a print version of a title you will not also get an ebook of the title automatically. Early releases are released as ebooks which are purchased separately from the print version.
Once the title has been released you may then have the option to purchase the "bundle" of the title which includes both the ebook and print book at a discounted price. Thank you for you interest in O'Reilly books and have as great day!
Customer Service Representative