Yes, the number 12 above the E string indicates that you should play the open E string twelve times in a row. This is often notated in guitar tabs to indicate a repeated section of music or a sustained note.
To write it in, you can simply add the number 12 above the E string as you have done in your tab.
I hope this helps! Let me know if you have any further questions.