Is Mannat allowed in Islam?

going to a cave for mannat! is that not shirk?