As someone with a rather silly collection of guitars (around 30) - generally no. I think the only one I have that has gone up appreciably in value is a 1984 Explorer I have. This is only based on what I paid for it and what the owner of D-Town Guitars apparently offered for it when my friend who has the guitar on loan took it there for some set-up work. More than double what I paid for the guitar off Reverb back in Feb 2021.
As I am starting to feel seriously overwhelmed by the ridiculous amount of stuff in my life, I am considering seeing if that offer stands to some extent. However, that is one piece of gear out of dozens that have mostly decreased in value.
My 80s JCM800 might be worth a bit more since unmodified originals have some value. But probably about the same as I paid for it.
For a few years I went on a vintage rack gear buying spree and now I'm not sure WTF I'm going to do with it all... most of it I didn't pay a ton for, so maybe I could get what I paid for it if I wanted to sell, but probably not. I still have my original ADA MP-2 and MicroTube 200 amp setup from the early 90s, so that maybe the only things I would really want to keep.
I doubt my recently purchased Friedman Jose will increase in value unless it goes out of production for some reason. Especially since it looks like they have caught up with those on the waiting list and you can buy the amp from Sweetwater now.
I have collected a ton of effects pedals over the decades. I've never sold a pedal, but I have an original Ibanez MT-10 Mostortion that can apparently sell for quite a bit and I have never actually used it. I honestly don't remember when/where/why I even bought it. Probably bought back when it was still new, although I'm sure I purchased it used.