As an exception to the general rule of not making big purchases until near the end of your visit, it makes sense to buy camera equipment as soon as possible so you can try it out during the trip.
Though most big purchases should be left until near the end of the trip, you may wish to buy camera equipment as soon as possible so you can try it out over the course of your visit.