By all means has 2 different meanings across 2 categories:
Adverb · Prep_phrase
definitely or certainly
"Visit us by all means"
emphatically yes; certainly; definitely