different guilds have different rules. some are for friends, some are private and require an application process to get in, and some let just about anyone in.
usually you can look at a guild's charter to find out more about the guild, and try to get to know them to see if you'd be a good fit in the guild.