Yes, the basic procedure is the same. However, processing in plastic bottles requires a special type of plastic that will resist high temperatures during the bottling process.
If you are talking about in a food processing plant then the answer is yes. The bottles whether plastic or glass are automatically filled with the product while it is hot and as it cools it seals the lid.