Set group of object visible from an input

I need to make some other object to appear, so I need to do the function in the BP that I am gonna spawn right?