Yes, they are both like a finger pointing at the moon.
Here it’s useful to know some background about this simile, because most people who are into Zen also mistakenly think it’s a Zen thing. It’s not really a Zen thing, although it was picked up by Zen. It’s actually a simile from Indian Mahāyāna Buddhism that appeared in the Laṅkāvatāra Sūtra, and it is not about sectarianism.