Does an antenna work inside a plastic box
Every consumer product with an internal antenna would say yes. Set top boxes, laptops, cell phones, ad nausem.

Of course, effeciency and range are affected. Thickness of the plastic, specific material, any shielding, etc would all affect the quality of the signal. Basic emperical testing would be needed for you to figure out how good it will be inside the case vs an external antenna.