Foam is a good thing. It is a good sign that your beer is properly aerated, oxygen before the yeast is pitched is a good thing. The yeast need oxygen in order to reproduce and be healthy.
When I pitch my yeast I usually have a good 2-3 inches of foam on my wort.
"There seems to be an over abundance of beer related items in this house." -SWMBO