Let's start by asking exactly what you're entering on - a visa? Which visa? Or a visa exemption (ie. No visa)? This might make a difference as to your next step.
Technically yes, it must be done. You might be OK. But, if any questions arise, it could cause issues ... and the friend you're staying with is the one who's responsible.