Certainly, just like with any other diet.
I gained muscle mass by doing strength training 2 times a week while on GLP-1 drugs.