Yes but Pakistan gets foreign aid from Saudi and Americans. So it will be very difficult for them to not get involved. Unless Iran and Israel promising the continuation of that foreign aid they were getting from Saudi Arabia.
Pakistan can't do much It would be better if you guys increased ties with Iran controlled afghanistan,deepened the relationship with China, No need to get involved in arab affairs Indonesia has 1 trillion $ + economy do you seem them trying to be the superpower of the muslim world ?