No you should not use a Pyrex dish directly on an electric burner stove or on a gas burner stove because the direct heat can shatter the Pyrex.
The Pyrex dishes are safe to put inside an oven but the Pyrex dishes are not safe to put on a heat source where the heat source is directly under the Pyrex dish.
If you do put a Pyrex dish directly on the electric burner or gas burner then it could shatter and if you're standing near it the glass from the Pyrex could injure you and even get into your eye.
I tried putting a Pyrex dish directly on an electric burner and it shattered and it's a good thing I was not in the kitchen when it did shatter because I would probably have gotten cut up.