Perfectly fine, and honestly encouraged if you have a lot of weight to lose.
Many men put on fat to begin with due to having low Testosterone. GLP-1s are a great way to drop that fat, but without proper hormone balance it's likely to just come back after treatment & you will experience more muscle loss during that diet with lower than normal Testosterone.