The short answer is yes, it is an emotion. The article comes up with some good ideas for working with boredom. I would also say that the word “boredom” may obscure a number of other emotions, thoughts, and memories that it might be useful to investigate. Just by becoming more interested in your boredom, you may find: Hey! I’m not bored any more!
https://www.apa.org/research/action/speaking-of-psychology/boredom-issues-covid-19