pitubo wrote:No. Dissolving NaOH releases a lot of heat. The sudden localized heating not only can cause glass to break, it can also cause plastics to melt or otherwise fail. The risks can be mitigated somewhat by employing good stirring, so that lye pellets do not get the chance to become stuck to the vessel and cause localized overheating in that place. IMHO the risks are not worth it. Do not use plastics to make a lye solution.
^This
As far as glass shattering, the localized heat from NaOH dissolving followed by relatively cold water cooling it (from shaking or stirring) is enough to shatter cheap glassware (especially glassware not made for cooking). I have had the bottoms sheer off of glass wine jugs from heat changes like this, and since then I only use pyrex/borosilicate glass for anything involving heat.
I used to work in a chem lab and had a pyrex volumetric flask almost completely split in half from the heat released by diluting sulfuric acid in water (came VERY close to having 2L of 6M sulfuric acid dump on me). Pic attached, the solution was dripping out of that crack.
If you plan on playing with strong acids and bases regularly, I highly recommend investing in some good beakers and flasks and a hotplate/stirrer to mix them evenly. Lab glass costs about the same as glass from a grocery or hobby store, and could save your life.
On a side note, I have used thick HDPE 2 plastic chemical bottles to dissolve hydroxide. It gets too hot to touch but retains its shape and doesn't melt, so if I'm too lazy to pull out a hotplate I just toss it in there and gently shake and then crack open the lid and let it sit until it cools off.
-Treehouse
TreehouseChemist attached the following image(s):

1365682742308.jpg
(23kb) downloaded 60 time(s).Life is effort and I'll stop when I die!
21:26:26 ‹Adept1›It's as close to a fact as you can get
Loose lips cause bad trips.