If the securities class action is based upon allegedly false statements made during the class period to artificially inflate the share price, then yes, you may sell some or all of your shares and still participate in any recovery.