Both the salicylic acid and the aspirin contains the carboxylic acid groups. Yes, the mixture of salicylic acid and aspirin can be separated by using the acid-based extraction. To dissolve the aspirin you need to use NaOH and it can isolate the aqueous layer.