Personally, plumbing is not a DIY task I enjoy doing but calling a plumber for a small repair is also quite expensive. I always keep several sets of pipe caps on my plumbing box (2-3 sharkbite end caps, 2-3 copper cap fittings (for soldering), and 2 screw-on). Also a good idea to have a sharkbite bypass in the event a pipe sprungs a leak. In that case, just the affected part off and add the bypass. Maybe not a permanent solution but enough to get things going while one can get proper supplies from the store.
My main water shut-off valve is leaky and still lets some water pass when closed, so being able to close an end and get to business is paramount. Replacing the main shut-off valve and gas pipes-related work is where I draw the line. Will need to get a plumber to replace that main water valve at some point...