If the RAM is otherwise compatible,  yes.  However, the CPU controls the RAM speed - it will run at the same speed your RAM does now, even if the RAM is capable of faster operation.  
I have a Dell Inspiron G7 with 16GB 2666 MHz RAM. Would I be able to upgrade it to 32GB 3200MHz or would it not work?
Inspiron G7, RAM upgrade