Definitely unprofessional... I did it a few times when starting up Take it on the chin and move on mate
as above, you don't change your price for the first job as that is what we agreed, but you dont want to keep doing underpriced work if it is a regular job, so you need to explain and re price. you will loose some doing this, but most will be understanding in my experience