An alternate interpretation: Yes
The opposite reading of this to my other answer. Consider the text in the Gloom Stalker Magic feature from Xanathar's Guide (page 42):
The spell counts as a ranger spell for you, but it doesn't count against the number of ranger spells you know.
Compared to a Ranger's Spellcasting feature of the PHB (page 92):
Additionally, when you gain a level in this class, you can choose one of the ranger spells you know and replace it with another spell...
So, we could instead focus on the fact that the spell is a ranger spell "for you", meaning that it can be replaced. As per the PHB, to replace something, it has to be a ranger spell you know, and according to the XGtE quote, it is a ranger spell for you, so therefore it can be replaced.
As I mention in my other answer, though, you lose the flavour that this gives to the archetype, given that the spells are chosen to fit that flavouring. However, if it's effectively just giving you extra ranger spells, then there's nothing stopping you (except my other answer, of course, or rather, a DM who prefers my other answer) from swapping them out as per the PHB quote above.