No. In order for an attic to be transformed into a functional bedroom, it must meet several building and safety standards.
While the exact requirements will vary by region, attic bedrooms almost always need to have a full staircase and at least one window. Height requirements are also extremely common — if the ceiling is too short, the space cannot be converted into a bedroom.