Yes, you can use a massage gun both before and after exercising. It can help warm up muscles before a workout and reduce post-workout soreness, known as Delayed Onset Muscle Soreness (DOMs).