First of all, use the Brewer's Friend "scale" feature to turn a 5 gallon recipe into 1 gallon.
But to answer the question: Almost, but not quite. The grain bill should translate using simple fraction math. But the hops will have less utilization (lower IBU) in a small volume, even if both are perfect fractions of an original recipe (i.e. 1 oz hops in 6 gallons vs. 0.33 oz hops in 2 gallons). And there are certain water components that are more or less constant, such as your boil off rate. If you boil off 1 gallon/hr you'll do that whether you start with 6 gallons or 2 gallons (assuming the same kettle).
Try out the scaling feature and you'll see how it works.