No, a 302 Ford engine (a small-block Ford V8) will not directly fit a Ranger transmission. Ranger transmissions are designed for smaller, inline engines (like the various 4-cylinder and V6 engines Ford offered in Rangers) and the bolt patterns, bellhousing, and overall dimensions are incompatible with a 302.
To make this work, you'd need an adapter plate and potentially other significant modifications, including potentially driveshaft changes. It's a major undertaking, not a simple bolt-on swap.