using ports on the ethernet shield as well as those of a mega underneath.

hello , I have an Arduino uno + ethernet shield but i'd like to have more available digital pins for a project i'm doing. If I used an Arduino mega would I be able to use the free digital pins on it i addition to the digital pins on the ethernet shield ?

cheers
sam

If I used an Arduino mega would I be able to use the free digital pins on it i addition to the digital pins on the ethernet shield ?

The free digital pins on the Mega, that are not covered by the shield? Of course. Except the SPI pins (50 - 53) that is.

cheers I thought it was probably a sure thing , just wanted to check and I couldn't see anything clear cut online

cheers
sam