Yes, you can. There is no requirement that your Sims account be created on the same computer where the game is installed.
You are free to set up your account on one machine and play on another.