Can I shave my vagina and around anus if I have a yeast infection on my skin down there and around anus?

Fix infection first. I would suggest getting the yeast infection treated before shaving the area. It is not likely to be very comfortable shaving if the area is infected. Also you would not want to cause further irritation.