Difference between arduino Ethernet and Arduino Uno + Ethernet shield


I know the phisical difference between an Arduino Ethernet and an Arduino Uno + ethernet shield.
But is there an difference in programming the board?
Can I use an sketch that is created for an Ethernet shield for an Arduino Ethernet board?

Jan Hein