Yes if it is an adjective, no if it's a nominal phrase (i.e. — as opposed to e.g. — if "retentive" — retentive to the Brits — here functions as a noun). And of course the adjectival phrase "anally retentive" should, as a rule, not be hyphenated (though, as "as a rule" implies, there are exceptions).
Liland