No. My brother and his wife had two babies one right after the other. They missed the world record for closeness in birthdays by 10 days. (Not a record you want to break!) They had a boy first and a girl second.
Diet can have some influence on what you have. So having a similar diet from one birth to the other can increase the chances of the same sex.