Yes, it should just be:
<img alt="<?php echo($Gallery->getColumnVal("GalleryDescription")); ?>" src="/images/gallery_c/<?php echo($count === 0)?'mainImage/homepage.jpg':$Gallery->getColumnVal("GalleryImage"); ?>">
You are already in an echo() call, so you don't need another one.