Welcome to the Forum!
Warranties come in several forms, including extended, and they are hotly debated as to cost verses value. You will find several conversations by searching "extended warranty" via the Search function on the Forum.
For a first time buyer, I personally will recommend that you do lots of homework on the coverage, ask some questions here, and then decide. When we were brand new, we bought one for our diesel pusher, and only had to use it once. By the end of that period, I had much more experience with what goes wrong and how, and had a maintenance history. The new coach we did not buy an extended warranty, but do carry the Coach-Net service for use if we have an issue on the road.
Lots of folks will provide their stories and perhaps that will help you make an informed decision. The warranties are a very good source of income to the dealer but as with all such things, they have a purpose, sometimes to your benefit, other times not so much.
Good luck with your shopping!
Kim