If yes please let me know.
Yes you can. We use JS for personalization.
This should be a good starting point
For a longer term solution, I'll recommend going through Adobe Campaign training if not taken already.
Can you please tell me any document from where I can ready about this.