You can do it that way, but a more common, preferable technique is to glue up the entire top using woodworkers glue (I like the yellow aliphatic glue). Then you attach the top to the table supports by using partially penetrating screws from the bottom up. The screws go through an oversized hole, and extend through the supports, typically 3/4 of the way through the table top.
The point of the oversized holes is that as the top moves with seasonal variation in moisture, there is room for the screws to move around, and you do not crack the top. There are many variations of this technique, including a variety of metal clips, but they all use the same principle of attaching the top from the bottom up through an oversized or oval hole. This way there are no holes through the top to fill, and you can remove the top if that ever becomes necessary.
You will need to clamp the pieces together while the glue is drying, or you will not get a good fit at the joints. I use pipe clamps, there are other options.
The point of the oversized holes is that as the top moves with seasonal variation in moisture, there is room for the screws to move around, and you do not crack the top. There are many variations of this technique, including a variety of metal clips, but they all use the same principle of attaching the top from the bottom up through an oversized or oval hole. This way there are no holes through the top to fill, and you can remove the top if that ever becomes necessary.
You will need to clamp the pieces together while the glue is drying, or you will not get a good fit at the joints. I use pipe clamps, there are other options.