Yes, you can mount your Sceptre E24 monitor vertically using its 100mm x 100mm VESA mount pattern.
However, you must not operate it in portrait mode if the ambient room temperature is 25°C (77°F) or higher. Running it vertically in a warm room retards heat dissipation and can eventually damage the display.
If you still want to try it for coding, ensure your room is cool, well below that 25°C threshold. Monitor the display's temperature by touch at the top vent area periodically. If it gets noticeably hot, switch it back to landscape orientation.
Always use a stable mount or stand recommended for the monitor. An unstable setup can cause it to fall, causing injury or serious damage.