Pointer to incomplete class type is not allowed

I tend to use inlined forward declaration (like class UBoxComponent* pickupbox;) etc.
I’m guessing that in such case that UBoxComponent is still declared in scope of whatever class it is declared in (so it would be like APickup::UBoxComponent in this case) . So it doesn’t actually matter whether it’s declared inside or outside of that class. I think?