No. Not on different machine. On different Drives.
It is a best practice to place data and log files on different drives for following 2 reasons:
1) DR (Disaster recovery). If one of the drives fails, you can recover the database without loosing commited data.
2) Performance. Data file is written randomly. Log file is written sequentially.