sure, why not, maybe with added how much "depth" you need to have to cause damage.
there is no mentioning that you can shape mud, just that you can turn certain amount of mud into stone.
yes, does not need to be a line, but if you want to transport army, straight line is best whenever possible.