No. You would need to have one SQL Agent license per machine running SQL Server, regardless of whether the machine is physical or virtual. If you do not have sufficient licenses, you would get a message warning you that you do not have sufficient licenses. Even if you do not get the warning message, you should still get one SQL Agent license per machine running SQL Server. Otherwise, you would be in violation of licencing terms.