So long as they're not touching. If the tank is big enough and the anemone is happy where you place it, they should be alright.
I am not going to put an anemone in my tank, however, because it is only a 30G and I've already got a fair amount of coral in my tank.