Paul’s Use of “Allegory” in Galatians 4:21 to Galatians 5:1 - A Method of Interpretation?

Paul uses the word 'allegory' in Galatians 5:24. Does this mean that the allegorical method of Scripture interpretation is therefore an acceptable or good hermeneutical method?