Yes.
The ethernet part is just a data transport - it neither knows nor cares whether the transported data represents AT commands or whatever else;
The AT command execution neither knows nor cares how the commands are delivered.
You just need to glue the two together!