Yes, you can use.
AWS Database Migration Service supports SQL Server on IaaS or Azure SQL Database as PaaS as a migration source.
https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.SQLServer.html
https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.AzureSQL.html
However, please understand that downtime will occur as it does not support CDC mode.
Amazon RDS will also support the SQL Server engine, allowing you to run your existing SQL Server workloads with managed capabilities.
In addition, Amazon RDS provides an engine mode called SQL Server Custom, and it is of course possible to host SQL Server on EC2.